import { defHttp } from '@/utils/http/axios';

/**
 * 字典下拉列表
 * @param params
 * @returns
 */
export function sysDictSelect(params) {
  return defHttp.post({ url: '/sys/dict/select', params });
}
/**
 * 字典分页查询
 * @param params
 * @returns
 */
export function sysDictPage(params) {
  return defHttp.post({ url: '/sys/dict/page', params });
}
/**
 * 添加字典
 * @param params
 * @returns
 */
export function sysDictSave(params) {
  return defHttp.post({ url: '/sys/dict/save', params });
}
/**
 * 更新字典
 * @param params
 * @returns
 */
export function sysDictUpdate(params) {
  return defHttp.post({ url: '/sys/dict/update', params });
}
/**
 * 获取字典详情
 * @param params
 * @returns
 */
export function sysDictDetail(params) {
  return defHttp.post({ url: '/sys/dict/detail', params });
}
/**
 * 删除字典
 * @param params
 * @returns
 */
export function sysDictRemove(params) {
  return defHttp.post({ url: '/sys/dict/remove', params });
}
/**
 * @param params
 * @returns
 */
export function getByDictType(params) {
  return defHttp.post({ url: '/sys/dict/getByDictType', params });
}
